package cn.wolfcode.luowowo.search.repository;

import cn.wolfcode.luowowo.search.domain.StrategyTemplate;
import cn.wolfcode.luowowo.search.domain.TravelTemplate;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TravelTemplateRepository extends ElasticsearchRepository<TravelTemplate, Long> {

    /**
     * 通过目的地的名字获取游记
     * @param name
     * @return
     */
    List<TravelTemplate> findByDestName(String name);
}
